package com.ccx.coachsite.task;

import android.content.Context;

import com.ccx.coachsite.bus.SharedKey;
import com.ccx.coachsite.http.HttpCallBack;
import com.ccx.coachsite.http.HttpRequest;
import com.ccx.coachsite.http.UrlConfig;
import com.ccx.coachsite.util.Log;
import com.ccx.coachsite.util.SharedPreferencesUtil;

public class ExpertExInfoTask extends TaskBase {

	public ExpertExInfoTask(HttpCallBack<?> iCall, Context context) {
		super(iCall, context);
		mTaskType = TaskType.TaskTypeExpertExInfo;
	}

	@Override
	protected String genUrl(HttpRequest request) {
 		return UrlConfig.getUrlByKey(UrlConfig.ExpertExInfoUrlKey) + "?mobile="
				+ mMobile;
	}

	@Override
	protected void onDataParse(String responseString) {
		try {
			SharedPreferencesUtil.setValue(mContext,
					SharedKey.Custom_ExpertEx_Info, responseString);
		} catch (Exception e) {
			Log.e(e.getMessage(), e);
		} finally {
		}
	}

}
